<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/html">
<head>
    <meta charset="UTF-8">
    <title>登录页</title>
    <script src="http://libs.baidu.com/jquery/2.1.4/jquery.min.js"></script>
    <script type="text/javascript">
        $('#sendSms').click(function () {
            console.info("click");
            $.ajax({
                url: "/sms/code?mobile=" + $('#mobile').value(),
                method: GET
            });
        });
    </script>
</head>
<body>

<form action="/auth/login" method="post">
    <input name="username" placeholder="Username"/><br/>
    <input name="password" type="password" placeholder="Password"><br/>
    <input name="code" type="text" placeholder="Code"/>
    <img src="/code/image" style="margin-bottom: -12px"></br>
    <input value="Login" type="submit"/>
    <input name="remember-me" type="checkbox"/>rememberMe
</form>

<form action="/sms/login" method="post">
    手机号：<input type="text" name="mobile" id="mobile" value="17759079950"></br>
    验证码：<input type="text" name="smsCode"></br>
    <a href="/sms/code?mobile=17759079950">发送短信</a>
    <button type="submit">立即登陆</button>
</form>

</body>
</html>